//
//  BettingRecordModel.m
//  PlayerWorld
//
//  Created by 1 on 16/6/6.
//  Copyright © 2016年 刘成. All rights reserved.
//

#import "BettingRecordModel.h"

@implementation BettingRecordModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{


}

-(id)valueForUndefinedKey:(NSString *)key{

    return nil;
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.B_L_Type forKey:@"B_L_Type"];
    [aCoder encodeObject:self.B_L_Issue forKey:@"B_L_Issue"];
    [aCoder encodeObject:self.B_L_AddTime forKey:@"B_L_AddTime"];
    [aCoder encodeObject:self.B_L_Money forKey:@"B_L_Money"];
    [aCoder encodeObject:self.B_L_State forKey:@"B_L_State"];

    [aCoder encodeObject:self.B_L_Order forKey:@"B_L_Order"]; // 订单编号
    [aCoder encodeObject:self.B_L_WinMoney forKey:@"B_L_WinMoney"]; // 中奖金额
//    [aCoder encodeObject:self.B_L_IsChaseCode forKey:@"B_L_IsChaseCode"]; // 购买盈亏
    [aCoder encodeObject:self.B_L_Multiple forKey:@"B_L_Multiple"]; // 购买倍数
    [aCoder encodeObject:self.B_L_BuyNum forKey:@"B_L_BuyNum"]; // 投注注数
    [aCoder encodeObject:self.B_L_WinNum forKey:@"B_L_WinNum"]; // 中奖注数
    [aCoder encodeObject:self.B_L_Rebate forKey:@"B_L_Rebate"]; // 购买返点
    [aCoder encodeObject:self.B_L_ReturnMoney forKey:@"B_L_ReturnMoney"]; // 返点金额

}


- (id)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        self.B_L_Type = [aDecoder decodeObjectForKey:@"B_L_Type"];
        self.B_L_Issue = [aDecoder decodeObjectForKey:@"B_L_Issue"];
        self.B_L_AddTime = [aDecoder decodeObjectForKey:@"B_L_AddTime"];
        self.B_L_Money = [aDecoder decodeObjectForKey:@"B_L_Money"];
        self.B_L_State = [aDecoder decodeObjectForKey:@"B_L_State"];

        self.B_L_Order = [aDecoder decodeObjectForKey:@"B_L_Order"];
        self.B_L_WinMoney = [aDecoder decodeObjectForKey:@"B_L_WinMoney"];
//        self.B_L_IsChaseCode = [aDecoder decodeObjectForKey:@"B_L_IsChaseCode"];
        self.B_L_Multiple = [aDecoder decodeObjectForKey:@"B_L_Multiple"];
        self.B_L_BuyNum = [aDecoder decodeObjectForKey:@"B_L_BuyNum"];
        self.B_L_WinNum = [aDecoder decodeObjectForKey:@"B_L_WinNum"];
        self.B_L_Rebate = [aDecoder decodeObjectForKey:@"B_L_Rebate"];
        self.B_L_ReturnMoney = [aDecoder decodeObjectForKey:@"B_L_ReturnMoney"];



    }
    return self;
}

@end
